package com.zcx.merchantorder.http.service;

import com.zcx.merchantorder.http.RetrofitHttpResponse;
import com.zcx.merchantorder.http.entity.User;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * @Description: java类作用描述
 * @Author: zcx
 * @CreateDate: 2019/3/2 19:42
 */
public interface ApiService {

    //网络请求时长
    int HTTP_TIME = 5000;
   /**
   *获取用户的个人信息
    * @date: 2019/3/3 12:19
    * @author: zcx
    * @param tel 电话号码
    * @return rx.Observable<com.zcx.merchantorder.http.entity.User>
    */
    @FormUrlEncoded
    @POST
    Observable<User> getUser(@Field("tel") String tel);
}
